package cmpe.swe.purcom.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import cmpe.swe.purcom.dao.SkillDao;
import cmpe.swe.purcom.model.Skill;

@Component
public class SkillService {
	@Autowired
	private SkillDao skillDao;

	public SkillDao getSkillDao() {
		return skillDao;
	}

	public void setSkillDao(SkillDao skillDao) {
		this.skillDao = skillDao;
	}

	public Long createSkill(String name) {
		return skillDao.createSkill(name);
	}

	public List<Skill> getSkills() {
		return skillDao.getSkills();
	}
}
